<template>
  <div class="point-no-err">
    <div class="container"
         v-if="select == false"></div>
    <div class="circle"
         v-else>
      <div class="circle1">&nbsp;</div>
      <div class="circle2">&nbsp;</div>
      <div class="circle3">&nbsp;</div>
      <div class="center"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "pointAnimate",
  props: {
    msg: String,
    select: Boolean
  },
  data() {
    return {};
  }
};
</script>

<style scoped lang="scss">
.point-no-err {
  width: 16px;
  height: 16px;
  display: inline-block;
  .circle,
  .container {
    width: 16px;
    height: 16px;
    border-radius: 10px;
    background-color: #1383e4;
  }
  .circle1,
  .circle2,
  .circle3,
  .center {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 10px;
    background-color: #1383e4;
  }

  .center {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 10px;
    background: #1383e4;
    text-align: center;
    line-height: 14px;
    color: #1383e4;
  }

  .circle1 {
    -webkit-animation: circle 3s linear infinite;
    animation: circle 3s linear infinite;
  }

  .circle2 {
    -webkit-animation: circle 3s linear 0.8s infinite;
    animation: circle 3s linear 0.8s infinite;
  }

  .circle3 {
    -webkit-animation: circle 3s linear 1.6s infinite;
    /* Safari and Chrome */
    animation: circle 3s linear 1.6s infinite;
  }
  @keyframes circle {
    /* Safari and Chrome */
    from {
      opacity: 1;
      -webkit-transform: scale(0);
    }

    to {
      opacity: 0;
      -webkit-transform: scale(7);
    }
  }
  @-webkit-keyframes circle {
    /* Safari and Chrome */
    from {
      opacity: 1;
      -webkit-transform: scale(0);
    }

    to {
      opacity: 0;
      -webkit-transform: scale(7);
    }
  }
}

@media screen and (max-width: 1670px) {
  .point-no-err {
    width: 8px;
    height: 8px;
    display: inline-block;
    .circle,
    .container {
      width: 8px;
      height: 8px;
      border-radius: 7px;
      background-color: #1383e4;
    }
    .circle1,
    .circle2,
    .circle3,
    .center {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 7px;
      background-color: #1383e4;
    }

    .center {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 7px;
      background: #1383e4;
      text-align: center;
      line-height: 14px;
      color: #1383e4;
    }

    .circle1 {
      -webkit-animation: circle 3s linear infinite;
      animation: circle 3s linear infinite;
    }

    .circle2 {
      -webkit-animation: circle 3s linear 0.8s infinite;
      animation: circle 3s linear 0.8s infinite;
    }

    .circle3 {
      -webkit-animation: circle 3s linear 1.6s infinite;
      /* Safari and Chrome */
      animation: circle 3s linear 1.6s infinite;
    }
    @keyframes circle {
      /* Safari and Chrome */
      from {
        opacity: 1;
        -webkit-transform: scale(0);
      }

      to {
        opacity: 0;
        -webkit-transform: scale(7);
      }
    }
    @-webkit-keyframes circle {
      /* Safari and Chrome */
      from {
        opacity: 1;
        -webkit-transform: scale(0);
      }
      to {
        opacity: 0;
        -webkit-transform: scale(7);
      }
    }
  }
}
</style>
